package com.special.threademo.jvm;

import com.special.threademo.spring.SourceTest;

/**
 * @author liuYC
 * @ClassName TestStackDeepDemo
 * @Description TODO
 * @date 2021/4/27 13:13
 */
public class TestStackDeepDemo {
    private static int count = 0;

    public static void recrussion() {
        count++;
        System.out.println("count:" + count);
        try {
            recrussion();
        } catch (Exception e) {
            System.out.println("recrussion stasck deep is :" + count);
            e.printStackTrace();
        }
    }

    public static void recrussion2(long s, long e, long h) {
        count++;
        long ew = 2, l = 3, ee = 4, eee = 5, d = 5, t = 5, ty = 98, adf = 45, asdf = 43, sdf = 32;
        System.out.println("count:" + count);
        recrussion();

    }
    public static void main(String[] args) {
        try {
            recrussion();
        } catch (Exception e) {
            System.out.println("recrussion stasck deep is :" + count);
            e.printStackTrace();
        }
    }
}
